﻿<Window x:Class="Gao.Poker.App.Win.SendSmsWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="短信发送" Width="600"  WindowStartupLocation="CenterScreen" ResizeMode="NoResize">
    <Grid Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1.5*"/>
            <ColumnDefinition Width="8.5*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="5"/>
            <RowDefinition Height="280"/>
            <RowDefinition Height="85"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>

        <TextBlock Grid.Row="1" Grid.Column="0" Text="选择发送对象:"  Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right"/>
        <StackPanel Margin="0" Grid.Column="1" Grid.Row="1" Orientation="Horizontal">
            <StackPanel Orientation="Vertical">
                <StackPanel Orientation="Horizontal" Margin="5">
                    <TextBlock Text="姓名：" Margin="10,5,0,5"/>
                    <TextBox Name="txtName" Text="{Binding MemberName}" Width="80" Margin="0,5,0,5"/>
                    <Button x:Name="btnSearch" Margin="5" Width="45" Click="SearchMember_Click" Style="{DynamicResource Orrange}" Content="查询"/>
                </StackPanel>
                <DataGrid Margin="0" RowHeight="30" AutoGenerateColumns="False" Name="dgLeft"
                      SelectionMode="Extended"  CanUserAddRows="True" CellStyle="{StaticResource Body_Content_DataGrid_Centering}"
                      AlternatingRowBackground="Gainsboro"  AlternationCount="2" IsReadOnly="True"
                      FontSize="16" ItemsSource="{Binding Path=Members}" Height="240" Width="200">
                    <DataGrid.Columns>
                        <DataGridTextColumn Header="姓名" Width="80" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Name}"/>
                        <DataGridTextColumn Header="手机号" Width="*" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Telephone}"/>
                    </DataGrid.Columns>
                </DataGrid>
            </StackPanel>
            <StackPanel Margin="10,100,10,5" Orientation="Vertical">
                <Button  Margin="5" Content="&lt;&lt;" Height="30" Click="MoveLeft_Click"/>
                <Button  Margin="5" Content="&gt;&gt;" Height="30" Click="MoveRight_Click"/>
            </StackPanel>
            <DataGrid Margin="0,38,0,0" RowHeight="30" Name="dgRight"  AutoGenerateColumns="False"
                      SelectionMode="Extended"  CanUserAddRows="True" CellStyle="{StaticResource Body_Content_DataGrid_Centering}"
                      AlternatingRowBackground="Gainsboro" ItemsSource="{Binding Path=SendMembers}"  AlternationCount="2"
                      FontSize="16" Height="Auto" Width="200">
                <DataGrid.Columns>
                    <DataGridTextColumn Header="姓名" Width="80" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Name}"/>
                    <DataGridTextColumn Header="手机号" Width="*" HeaderStyle="{StaticResource CenterAlignmentColumnHeaderStyle}" Binding="{Binding Path=Telephone}"/>
                </DataGrid.Columns>
            </DataGrid>
        </StackPanel>

        <TextBlock Grid.Column="0" Grid.Row="2" Text="内容：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right"/>
        <TextBox Text="{Binding Path=SendSms.SendContent}" Margin="1" Grid.Column="1" Width="450" HorizontalAlignment="Left" 
                 VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" Grid.Row="2" Height="80"/>


        <TextBlock Grid.Column="0" Grid.Row="3" Text="后缀：" Margin="1" VerticalAlignment="Center" HorizontalAlignment="Right"/>
        <TextBox Text="{Binding Path=SendSms.Suffix}" Margin="1" Width="450" Grid.Column="1" HorizontalAlignment="Left"  VerticalContentAlignment="Center" Grid.Row="3"/>

        <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2"  Grid.Row="6" Margin="5" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button Padding="5" Style="{DynamicResource Orrange}" Width="60" FontSize="16" Height="35" Name="btnLogin" 
                    Click="SendMsm_Click">发送</Button>
        </StackPanel>
    </Grid>
</Window>
